<?php
// ConfiguracionController.php
class Admin_ConfiguracionController extends Zend_Controller_Action {
    private $_model;
	
	public function init () {
		$this->_model = new Admin_Model_Configuracion();
	}
	
	public function indexAction () {
        
    }

    public function seleccionarAction () {
		if ($this->_request->isPost()) {
			$data = $this->_request->getPost();
			$id = $data['usar'];
			$this->_model->cambiarConfiguracion($id);
			echo '<script>alert("Cambio hecho satisfactoriamente");</script>';
		}
		$this->view->baseDeDatos = $this->_model->getConfiguraciones();
    }
}
